package com.bckj.freshnow.cart.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

/**
 * 购物车主表(Cart)表实体类
 *
 * @author makejava
 * @since 2025-04-28 14:39:41
 */
@Data
@TableName("cart")
public class Cart {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    
/** 用户ID */
    private Long userId;
    
    
/** 购物车类型(0-普通 1-促销 2-套装等) */
    private Integer cartType;
    
    
/** 版本号(乐观锁) */
    @Version 
    private Integer version;
    
    
/** ${column.comment} */
    private LocalDateTime createTime;
    
    
/** ${column.comment} */
    private LocalDateTime updateTime;
    

}

